//
//  UIButton+SQButton.m
//  自定义转场测试
//
//  Created by 翁胜琼 on 2018/3/6.
//  Copyright © 2018年 翁胜琼. All rights reserved.
//

#import "UIButton+SQButton.h"

@implementation UIButton (SQButton)

+ (instancetype)initWithFrame:(CGRect)frame title:(NSString*)title fontSize:(UInt64)fontSize
                   titleColor:(UIColor*)titleColor forState:(UIControlState)state
{
    UIButton *btn = [[UIButton alloc]initWithFrame:frame];
    [btn setTitle:title forState:state];
    [btn setTitleColor:titleColor forState:state];
    btn.titleLabel.font = [UIFont systemFontOfSize:fontSize];
    
    return btn;
}

@end
